package com.bg.bgadmin;

import com.bg.bgadmin.modules.sys.service.SystemService;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.ComponentScan;

@EnableCaching
@SpringBootApplication
@ServletComponentScan("com.bg.bgadmin")
@ComponentScan(value = "com.bg.bgadmin",lazyInit = true)
public class BgadminApplication {

	public static void main(String[] args) {
		new SpringApplicationBuilder(BgadminApplication.class).web(true).run(args);
		SystemService.printKeyLoadMessage();
	}
}
